<?php 
class Bootstrap 
	extends Zend_Application_Bootstrap_Bootstrap
{
    /**
     * bootstraps the cache objects 
     * @return unknown_type
     */
	protected function _initCache()
	{
		$params 	= $this->getOption('cache');
		
		$cache = Zend_Cache::factory('Core',
		                             'File',
		                             $params['data']['front'],
		                             $params['data']['back']);

		Core_Db_Mapper_Abstract::setCache($cache);
		Zend_Registry::set('cache', $cache);
		Zend_Paginator::setCache($cache);
		
		$bCache	= Zend_Cache::factory('Core',
		                             'File',
		                             $params['meta']['front'],
		                             $params['meta']['back']);
		                             
		Zend_Db_Table_Abstract::setDefaultMetadataCache($bCache);	
	}	
}